package com.airwallex;

import com.airwallex.util.RPNCalculator;

import java.util.Scanner;

/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ) {
        Scanner readers = new Scanner(System.in);
        String exp = null;
        RPNCalculator rpnCalculator = new RPNCalculator();
        System.out.print("输入RPN表达式(输入quit退出): ");
        while (!(exp= readers.nextLine()).equals("quit")) {
            rpnCalculator.calcRPN(exp);
            System.out.println( "==============" );
        }

        System.out.println( "结束!" );
    }
}
